@foreach (['danger', 'warning', 'success', 'info','error'] as $msg)
  @if(session()->has($msg))
    <div style="width:600px;line-height:30px; background-color:#DEF0D8;margin:0 auto;border-radius:2px; text-align:center;color:red;">
      <p class="{{ $msg }}">
        {{ session()->get($msg) }}
      </p>
    </div>
  @endif
@endforeach
